home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / serus221.zip / SERFACE.H < prev    next >
Text File  |  1990-09-01  |  2KB  |  45 lines

  1.  
  2.    /********************************************************************/
  3.    /*                                                                  */
  4.    /*  Header file for Turbo C applications                            */
  5.    /*  using the interface routines in  serface.c                      */
  6.    /*                                                                  */
  7.    /*  by Norman J. Goldstein                                          */
  8.    /*                                                                  */
  9.    /********************************************************************/
  10.  
  11. /*---------------------------------------------------------------------
  12. These are the prototypes for the interface functions in  serface.c ---*/
  13.  
  14. unsigned S_Open(char * devname , unsigned port , unsigned irq ,
  15.                 char far * inbptr , unsigned inbord);
  16.  
  17. unsigned S_SetParms( unsigned baud, unsigned data, unsigned stop,
  18.                      unsigned parity );
  19.  
  20. unsigned S_Close(void);
  21.  
  22. unsigned S_SendChar( char c );
  23.  
  24. int S_RecvChar(void);
  25.  
  26. unsigned S_SetMode( char mode );
  27. /*-----------------------------------------------------------------------*/
  28.  
  29. /*------------------------------------------------------------------------
  30.   These are the error codes used by  SERIOUS  version 2.21 . -------------*/
  31.  
  32. #define     ERR_BadCommand      1
  33. #define     ERR_Active          2
  34. #define     ERR_BadData         3
  35. #define     ERR_BadStop         4
  36. #define     ERR_BadParity       5
  37. #define     ERR_BadBaud         6
  38. #define     ERR_NotActive       7
  39. #define     ERR_BadOrder        8
  40. #define     ERR_UARTsleeps      9
  41. #define     ERR_BadIrq         10
  42.  
  43. #define     E_NoEntryAddress   0xFE
  44. /*--------------------------------------------------------------------------*/
  45.